home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: Essential Home & Business
/
PC-SIG - Essential Home and Business Collection.iso
/
22
/
9
/
8
/
E_INSTAL.BAT
next >
Wrap
DOS Batch File
|
1990-02-22
|
6KB
|
142 lines
echo off
rem
rem E_INSTAL.BAT for The States
rem
cls
if x%1==x goto di-rections
if x%2==x goto di-rections
if not exist %1EXPL_B.EXE goto error
if not exist %1EXPL_A.EXE goto error
if not exist %1E_README.1ST goto error
if %2==b: goto small-disk
if %2==B: goto small-disk
goto big-disk
rem Display Install help if drive data are wrong
:di-rections
echo ╒════════════════════════╗ ╔════════════════════════════════════╕
echo │ Installation Procedure ║ ║ Syntax: INSTALL drive1: drive2: │
echo ├────────────────────────╨───────╨────────────────────────────────────┤
echo │ The Install procedure must be from one drive to another. │
echo │ The distribution disk must be placed in drive1. The Install │
echo │ program will expand the files to drive2. │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ If you use a Dual Floppy 360k system you will need to prepare two │
echo │ formatted diskettes. Label one of the disk EXPL A and the │
echo │ EXPL B. When ready place the distribution disk in drive A: │
echo │ type .... INSTALL A: B: │
ECHO ╞═════════════════════════════════════════════════════════════════════╡
echo │ For a Hard Disk or a 720k+ system you will require at least 700K │
echo │ for the subdirectory \EXPL that will be created. When ready place │
echo │ the distribution disk in drive A: (or B:) and type "from" - "to": │
echo │ INSTALL A: C: (program material from A: to hard disk C:) or │
echo │ INSTALL B: C: (program material from B: to hard disk C:) or │
echo │ INSTALL A: B: (program material from A: to 360 or 720K+ disk B:) │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ NOTE: The INSTALL batch file will supply supplemental instructions.│
echo ╘═════════════════════════════════════════════════════════════════════╛
pause
cls
goto exit-bat
rem *** routine for hard disk installation procedure ***
:big-disk
cls
echo ╒══════════════════════════════════════════════════════════╕
echo │ You have chosen to install the EXPL files │
echo │ from drive "%1" to drive "%2" fixed disk. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Remember, the Destination drive %2 must have 700K free. │
echo ├──────────────────────────────────────────────────────────┤
echo │ If you wish to change your mind press "CTRL BREAK" now. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Otherwise .... │
echo ╘══════════════════════════════════════════════════════════╛
echo:
pause
%2
cls
echo ┌──────────────────────────────────────┐
echo │ Creating \EXPL directory on "%2". │
echo └──────────────────────────────────────┘
cd \
md EXPL
cd \EXPL
echo ┌────────────────────────────────────────┐
echo │ Extracting files ................. │
echo │ This may take a few moments.... │
echo └────────────────────────────────────────┘
COPY %1E_README.1st %2
%1EXPL_A
%1EXPL_B
dir /w %2
pause
goto done
rem
rem *** Installation procedure for 360K - 720k+ diskette ***
rem
:small-disk
cls
echo ╔══════════╦═════════════════════════════════════════════════════════╗
echo ║ FLOPPY ║ It is assumed you have chosen to install the files ║
echo ║ INSTALL ║ from Drive A: to a 360K or 720k+ disk on Drive B: ║
echo ╠══════════╩═════════════════════════════════════════════════════════╣
echo ║ Remember - you should have diskettes formatted and prepared ║
echo ║ labeled EXPL-A (& EXPL-B). Press CTRL-BREAK if not ready, else ║
echo ╠════════════════════════════════════════════════════════════════════╣
echo ║ Put distribution disk in drive A: & Disk EXPL-A in Drive B: & .. ║
echo ╚════════════════════════════════════════════════════════════════════╝
echo:
pause
cls
echo ┌────────────────────────────────────────┐
echo │ Extracting QUIZEXPL & TEST files .... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%2
COPY %1E_README.1ST %2
%1pres_A
dir /w %2
pause
cls
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ If a 360k disk: Remove EXPL-A disk from drive B: ║
echo ║ Replace it with the EXPL-B disk, or ... ║
echo ║===============================================================║
echo ║ If a 720k+ disk: No need to remove the disk. Just ......... ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo:
pause
echo ┌────────────────────────────────────────┐
echo │ Extracting HISTORY files. │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%1EXPL_B
dir /w %2
pause
:done
cls
echo ┌─────────────────────────────────────────────────────────┐
echo │ BRAVO ... The installation procedure has been complete! │
echo └─────────────────────────────────────────────────────────┘
echo:
echo:
echo ╔═════════════════════════════╤═════════════════════════════════╗
echo ║ The document may be printed.│ : PRINT EXPL.DOC ║
echo ║ or listed to the screen.....│by typing : TYPE EXPL.DOC ║
echo ║ The programs may be run.....│ : QUIZEXPL ║
ECHO ║ OR .........................│ : READEXPL ║
echo ╚═════════════════════════════╧═════════════════════════════════╝
GOTO EXIT-BAT
:ERROR
CLS
echo
echo
echo d
echo:
echo ************************************************************
ECHO * We have not found the correct files on drive %1. Please *
echo * place the distribution disk in drive %1 and start over. *
echo ************************************************************
echo
pause
:exit-bat